from fastapi import APIRouter

router1 = APIRouter()
@router1.get("/")
async def read_root():
    return {"Hello": "World"}

@router1.get("/items/{item_id}")
async def read_item(item_id: int, q: str = None):
    return {"item_id": item_id, "q": q}

@router1.get("/users/", tags=["users"])
async def read_users():
    return [{"username": "Rick"}, {"username": "Morty"}]

@router1.get("/users/me", tags=["users"])
async def read_user_me():
    return {"username": "fakecurrentuser"}

@router1.get("/users/{username}", tags=["users"])
async def read_user(username: str):
    return {"username": username}